package cn.yunhe.service;

import cn.yunhe.dao.IAdminDao;
import cn.yunhe.dao.impl.AdminDao;

public class RegService {
    IAdminDao adminDao = new AdminDao();

    /**
     * 查询用户是否存在
     * @return
     */
    public boolean getAdmin(String username){
        return adminDao.getAdmin(username);
    }

    /**
     * 注册用户
     * @param username
     * @param password
     * @return
     */
    public boolean addAdmin(String username,String password){
        return adminDao.addAdmin(username,password);
    }
}
